<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">			
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th>ID</th>
						<th>发布时间</th>
						<th>图片</th>
						<th>内容</th>
						<!--<th width="150">操作</th>-->
					</tr>
				</thead>
				<volist name='video' id='show'>
				<form class="js-ajax-form" action="" method="post">
				<tr>
					<td>{$i}</td>
					<td>{$show.vtime}</td>
					<td>
					<if condition="$show['picnum'] eq 1">
						<span>
						<input style="display:none;" id='h3{$i}' value="{$show['vpic'][1]}" />
							<a href="javascript:$('#h').css('display','block'); var a=$('#h3{$i}').val();alert(a);$('#h2').attr('src',a);">
								<i class="fa fa-photo fa-fw"></i>
							</a>
						</span>
					<elseif condition="$show['picnum'] eq 2" />
						<span>
							<a href="{:sp_get_asset_upload_path($show['vpic'][1])}" target='_blank'>
								<i class="fa fa-photo fa-fw"></i>
							</a>
						</span>&nbsp;&nbsp;
						<span>
							<a href="{:sp_get_asset_upload_path($show['vpic'][2])}" target='_blank'>
								<i class="fa fa-photo fa-fw"></i>
							</a>
						</span>
					<else />
						<span>
							<a href="{:sp_get_asset_upload_path($show['vpic'][1])}" target='_blank'>
								<i class="fa fa-photo fa-fw"></i>
							</a>
						</span>&nbsp;&nbsp;
						<span>
							<a href="{:sp_get_asset_upload_path($show['vpic'][2])}" target='_blank'>
								<i class="fa fa-photo fa-fw"></i>
							</a>
						</span>&nbsp;&nbsp;
						<span>
							<a href="{:sp_get_asset_upload_path($show['vpic'][3])}" target='_blank'>
								<i class="fa fa-photo fa-fw"></i>
							</a>
						</span>
					</if>
					&nbsp;&nbsp;共{$show['picnum']}张
					</td>
					<input style="display:none;" id='hide{$i}' value="{$show['content']}" />
					<td><span>
							<button class="btn btn-primary btn-small" onClick="javascript:$('#h').css('display','block'); var a=$('#hide{$i}').val();$('#h2').text(a);return false;" >查看文字内容</button>	
						</span></td>
					<!--<td><a href="index.php?m=AdminTest&a=edit&id={$msg1.id}" class="btn btn-primary btn-small">修改信息</a>&nbsp;<input type="submit" class="btn btn-danger btn-small" value="删除代理" /></td>-->
				</tr>
				</form>
				</volist>
			</table>
			
			<div class="pagination">{$page}</div>
		
	</div>
	<div id='h' class="alert alert-success" style="display:none;position:absolute;top:60%;left:50%;margin:-120px 0 0 -200px;z-index:2;radius:6px;width:400px;height:240px;">
		<button class="close" onClick="javascript:$('#h').css('display','none');">&times;</button>
		<div style="clear:both;"></div>
		<p id='h2'></p>
		<img id='h3' style="display:none;" />
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>